package com.ev.asl.dao;

import com.ev.asl.domain.AssemblyDailyDO;
import com.ev.asl.domain.MoldingDailyDO;
import com.ev.asl.dto.AssemblyDaily2Dto;
import com.ev.asl.dto.AssemblyDailyDetailDtO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author 姚家乐
 * @since 2021/6/10 13:31
 */
@Mapper
public interface AssemblyDailyDao {

    int save(AssemblyDailyDO entity);

    int batchSaveDetails(@Param("list")List<AssemblyDailyDetailDtO> dailyDetailDtOs);

    int batchUpdateDetails(@Param("list")List<AssemblyDailyDetailDtO> dailyDetailDtOs);

    AssemblyDailyDO get(Long id);

    AssemblyDaily2Dto getDetailInfo2(Long id);

    List<AssemblyDaily2Dto> listDetail(Map<String, Object> param);

    Map<String, Object> getDetailInfo(Long id);

    Integer update(AssemblyDailyDO entity);

    int batchRemove(Long[] ids);

    int remove(Long id);

    int countForMap(Map<String, Object> params);

    List<Map<String, Object>> listForMap(Map<String, Object> param);

    int totalForMap(Map<String, Object> param);
}
